package day6.Exer;

import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;

public class Exer6 {
    public static void main(String[] args) {
        SimpleDateFormat sdf=new SimpleDateFormat("yyyy/MM/dd hh");
        Calendar a = Calendar.getInstance();
        a.set(2022, 0 , 0,8,0);
        System.out.println("今年的学士后结业考试时间为：");
        int count = 0;
        while (count < 12) {
            for (int i = 0; i < 7; i++) {
                a.add(Calendar.DATE, 1);
                if(a.get(Calendar.DAY_OF_WEEK)==7){
                    break;
                }
            }
            a.add(Calendar.DATE,21);
            Date b=a.getTime();
            String st=sdf.format(b);
            System.out.println(st);
            a.set(Calendar.DATE,1);
            a.add(Calendar.MONTH,1);
            count++;
        }
    }
}
